﻿@using hc.epm.Common;
@using hc.Plat.Common.Extend;
@model hc.epm.DataModel.Business.Epm_TzDesignScheme
@{
    ViewBag.Title = "设计方案详情";
}
<link href="~/Resource/css/ProjectManagement.css" rel="stylesheet" />

<style>
    .btn-pro {
        width: 15%;
        height: 35px;
        border: none;
        background-color: #c3c3c3 !important;
        color: white;
        border-radius: 4px;
        font-size: 16px;
    }
</style>
<div class="contentData">
    <form class="form-horizontal" id="mainForm">
        <div class="row">
            <div class="module-div">
                <h4>  项目基础信息</h4>
                <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;margin-bottom:10px;">
                    <tbody>
                        <tr>
                            <td class="table_title">项目名称:</td>
                            <td class="td-div" colspan="3">
                                <div>@Model.ProjectName</div>
                                <input type="hidden" id="ProjectId" name="ProjectId" value="@Model.ProjectId" />
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">站库名称:</td>
                            <td class="td-div">
                                <div>@Model.StationName</div>
                            </td>
                            <td class="table_title">项目性质:</td>
                            <td class="td-div">
                                <div>@Model.NatureName</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">项目类型：</td>
                            <td class="td-div">
                                <div>@Model.ProjectType </div>
                            </td>
                            <td class="table_title">项目编号：</td>
                            <td class="td-div">
                                <div>@Model.ProjectCode</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">地区公司：</td>
                            <td class="td-div">
                                <div>@Model.RegionCompany  </div>
                            </td>
                            <td class="table_title">地市公司：</td>
                            <td class="td-div">
                                <div>@Model.CompanyName </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">估算投资：</td>
                            <td class="td-div">
                                <div>@Model.PredictMoney.ToString("0.00") 万元   </div>
                            </td>
                            <td class="table_title">总工程费用：</td>
                            <td class="td-div">
                                <div>@Model.TotalInvestment.ToString("0.00") 万元</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">土地费用：</td>
                            <td class="td-div">
                                <div>@Model.LandCosts.ToString("0.00") 万元</div>
                            </td>
                            <td class="table_title">其他费用：</td>
                            <td class="td-div">
                                <div>@Model.OtherExpenses.ToString("0.00")  万元</div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="module-div">
                <h4>初设信息</h4>
                <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                    <tbody>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 初步设计单位:</td>
                            <td class="td-div">
                                <div>@Model.DesignUnit </div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 示范/标注:</td>
                            <td class="td-div">
                                @*<div>@Model.StandarCode  </div>*@
                                @if (Model.StandarCode == "XXGSPS1")
                                {
                                    <div>示范加油站（油库）</div>
                                }
                                @if (Model.StandarCode == "GFGSPS2")
                                {
                                    <div>标准加油站（油库）</div>
                                }
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 上报概算:</td>
                            <td class="td-div">
                                <div>@Model.Estimate.ToString("0.00") 万元 </div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 工程费用:</td>
                            <td class="td-div">
                                <div>@Model.EngineeringCost.ToString("0.00")  万元</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 工程其他费用：</td>
                            <td class="td-div">
                                <div>@Model.OtheInvestment.ToString("0.00")  万元</div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 设计单位招标时间：</td>
                            
                            <td class="td-div">
                                @if (Model.InviteTime == null)
                                {
                                    <div></div>
                                }
                                @if (Model.InviteTime != null)
                                {
                                    <div>@(Convert.ToDateTime(Model.InviteTime).ToString("yyyy-MM-dd"))</div>
                                }
                                
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">设计单位负责人：</td>
                            <td class="td-div">
                                <div>@Model.DesignUnitCharge  </div>
                            </td>
                            <td class="table_title">职务：</td>
                            <td class="td-div">
                                <div>@Model.DesignJob  </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">项目经理：</td>
                            <td class="td-div">
                                <div>@Model.ProjectManager  </div>
                            </td>
                            <td class="table_title">职务：</td>
                            <td class="td-div">
                                <div>@Model.ProjectJob </div>
                            </td>
                        </tr>

                    </tbody>
                </table>
            </div>
            <div class="module-div">
                <h4>主要工程内容</h4>
                <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                    <tbody>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 占地面积:</td>
                            <td class="td-div">
                                <div>@Model.LandArea.ToString("0.00") 平米</div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 加油机:</td>
                            <td class="td-div">
                                <div>@Model.MachineofOilStage 台</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 加气机:</td>
                            <td class="td-div">
                                <div>@Model.MachineofGasStage 台</div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 储气机:</td>
                            <td class="td-div">
                                <div>@Model.GasWells 方</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 罐容:</td>
                            <td class="td-div">
                                <div>@Model.OilTank.ToString("0.00") 方</div>
                            </td>
                            <td class="table_title">罩棚面积 :</td>
                            <td class="td-div">
                                <div>@Model.Shelter.ToString("0.00") 平米</div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title">站房面积:</td>
                            <td class="td-div">
                                <div>@Model.StationRoom.ToString("0.00") 平米</div>
                            </td>
                            <td class="table_title">便利店面积 :</td>
                            <td class="td-div">
                                <div>@Model.ConvenienceRoom.ToString("0.00") 平米</div>
                            </td>
                        </tr>
                    </tbody>

                </table>
            </div>
            <div class="module-div">
                <h4>其他信息</h4>
                <table class="datalist" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                    <tbody>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i> 批复概算投资:</td>
                            <td class="td-div" colspan="3">
                                <div>@Model.ReleaseInvestmentAmount.ToString("0.00") 万元</div>
                            </td>
                            <td class="table_title"><i class="color_red">*</i> 批复文号:</td>
                            <td class="td-div">
                                <div>@Model.ApprovalNo </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_title"> 其他工程内容:</td>
                            <td class="td-div" colspan="5">
                                <div>@Model.OtherProject </div>
                            </td>

                        </tr>
                        <tr>
                            <td class="table_title"><i class="color_red">*</i>  项目信息是否与实际同步:</td>
                            <td class="td-div" colspan="5">
                                @if (Model.IsSynchro == "SFFH1")
                                {
                                    <div>是</div>
                                }
                                @if (Model.IsSynchro == "SFFH2")
                                {
                                    <div>否</div>
                                }
                            </td>

                        </tr>
                </table>
            </div>
            <div class="module-div">
                <h4>附件信息</h4>
                <table class="datalist fileShow" style="word-break:break-all;word-wrap:break-word;margin-top:10px;">
                    <tbody class="fileShow-append">
                        <tr class="headtr">
                            <th class="table_title" style="width: 219px;">序号</th>
                            <th class="td-div">附件名称</th>
                            <th class="table_title">附件类型</th>
                            <th class="td-div">操作</th>
                        </tr>
                        @if (Model.TzAttachs != null && Model.TzAttachs.Count() > 0)
                        {
                            foreach (var item in Model.TzAttachs)
                            {

                                <tr id="${obj.GuidId}">
                                    <td><span class="font-black">@item.Sort</span></td>
                                    <td class="text_lf td-div"><span class="font-black">@item.Name</span></td>
                                    <td><span class="font-black">@item.TypeName</span></td>
                                    <td class="td-div" style="text-align:center">
                                        <a class="fileDel downloadFile" href="javascript:void(0)" data-url="@item.FilePath" data-name="@item.Name" style="color:#337ab7;">下载</a> 
                                    </td>
                                </tr>
                            }
                        }
                    </tbody>
                </table>
            </div>
            <div class="layui-form-item  btn-save" style="margin-top:60px;text-align:center;">
                <input type="button" id="Cancel" value="返&nbsp;&nbsp;&nbsp;回" class="layui-btn layui-btn-big " />
            </div>
        </div>
    </form>
    
</div>
<script>
    //返回按钮
    $("#Cancel").on("click", function () {
        window.location.href = "/TzDesignScheme/Index";
    });
      //下载附件
    $("body").on("click", ".downloadFile", function () {
            var path = $(this).data("url");
            var fileName = $(this).data("name");
            window.location.href = "/Download/DownLoadHB?path=" + path + "&fileName=" + fileName;
        });
</script>

